package com.xing.user.demo;

import com.liu.common.exception.BizCodeEnum;
import com.liu.common.exception.RRException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author Liu
 * Description
 * CreateTime 2025/6/14 23:56
 **/
@RestController
@RequestMapping("/sample")
public class SampleController {

    @RequestMapping(path = "/test", method = RequestMethod.GET)
    public String test() {
        RRException.newInstance(BizCodeEnum.UserExceptionEnum.USER_NOT_EXIST);
        return "test";
    }
}
